﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;

namespace HCD.Entities
{
    /// <summary>
    /// 危急值表
    /// </summary>
    [Table("HIS_RESULT_ALARM")]
    public class HisResultAlarm : Entity<long>
    {

        /// <summary>
        /// 病人标识
        /// </summary>
        [Column("PATIENT_ID", TypeName = "VARCHAR(20)")]
        public string PatientId { get; set; }



        /// <summary>
        /// 就诊标识(住院VisitId门诊ClinicNo)
        /// </summary>
        [Column("VISIT_ID", TypeName = "VARCHAR(20)")]
        public string VisitId { get; set; }



        /// <summary>
        /// 结果
        /// </summary>
        [Column("RESULT", TypeName = "VARCHAR(100)")]
        public string Result { get; set; }



        /// <summary>
        /// 上报时间
        /// </summary>
        [Column("SNED_TIME", TypeName = "DATETIME")]
        public DateTime SnedTime { get; set; }



        /// <summary>
        /// 上报人
        /// </summary>
        [Column("SEND_MAN", TypeName = "VARCHAR(20)")]
        public string SendMan { get; set; }



        /// <summary>
        /// 申请号
        /// </summary>
        [Column("APPLY_NO", TypeName = "VARCHAR(60)")]
        public string ApplyNo { get; set; }



        /// <summary>
        /// 参考值
        /// </summary>
        [Column("REFERENCE_VALUE", TypeName = "VARCHAR(100)")]
        public string ReferenceValue { get; set; }



        /// <summary>
        /// 申请类别(Exam、LabTest)
        /// </summary>
        [Column("APPLY_CLASS", TypeName = "VARCHAR(10)")]
        public string ApplyClass { get; set; }
    }
}
